<!--<link href="${s.base}/res/css/reset.css" rel="stylesheet" type="text/css"/>-->
<link rel="stylesheet" href="${s.base}/res/css/list.css"/>
<link rel="stylesheet" href="${s.base}/res/css/moco.min.css"/>
<link rel="stylesheet" href="${s.base}/res/css/font-awesome.min.css"/>
<script type="text/javascript" src="${s.base}/res/js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="${s.base}/res/js/jquery.form.js"></script>
<script type="text/javascript" src="${s.base}/res/js/oc.min.js"></script>
<script type="text/javascript" src="${s.base}/res/js/layer.js"></script>
<script type="text/javascript" src="${s.base}/res/js/jquery.colorbox-min.js"></script>
<script type="text/javascript" src="${s.base}/res/js/common.js?v=201811081103"></script>
<script type="text/javascript" src="${s.base}/res/js/util.js?v=201811081103"></script>


<!--<script type="text/javascript" src="${s.base}/res/js/bootstrap.min.js"></script>-->

<!--[if lt IE 9]>
  <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<link rel="icon" type="image/png" href="${s.base}/res/i/ico.png" sizes="16x16">

<script type="text/javascript">
CONTEXT_PATH = '${s.base}';

<@shiro.guest>
SHIRO_LOGIN = false;
</@shiro.guest>

<@shiro.user>
SHIRO_LOGIN = true;//是否已经登录 
</@shiro.user>

$(function(){  
    // 设置jQuery Ajax全局的参数  
    $.ajaxSetup({  
        type: "POST",  
        complete:function(xhr,status){
        	if(xhr.responseJSON.errcode == 1001){//登录超时 
        		window.location.href=CONTEXT_PATH+"/auth/login.html";
        	}
        }
    });  
});

function initIndexPage() {
    $(".footer-sns-weixin").on("mouseover mouseout",function(event){
        if(event.type == "mouseover"){
            $(this).children('i').show();
        }else if(event.type == "mouseout"){
            $(this).children('i').hide();
        }
    });

    $(window).scroll(function () {
        var scrollTop = $(window).scrollTop();
        var gotoTop = $("#backTop");
        if(scrollTop > 200) {
            gotoTop.show();
            gotoTop.prev().removeClass("no-goto");
        } else {
            gotoTop.hide();
            gotoTop.prev().addClass("no-goto");
        }
    });

    $("#backTop").click(function () {
        $("html,body").animate({scrollTop:'0px'},"fast");
    });
};


$(initIndexPage);
</script>

